package org.sokula.venus.webtest;

import org.mortbay.jetty.Connector;
import org.mortbay.jetty.Server;
import org.mortbay.jetty.nio.SelectChannelConnector;
import org.mortbay.jetty.webapp.WebAppContext;

public class WebTestServer {

	public static void main(String[] args) throws Exception {

		Server server = new Server(0);
		Connector conn = new SelectChannelConnector();
		conn.setPort(8080);
		server.setConnectors(new Connector[] { conn });

		WebAppContext webapp = new WebAppContext("src/main/webapp", "/");
		server.setHandler(webapp);
		server.start();
	}
}